<CFINCLUDE TEMPLATE="_saverouteMAPISMTP.cfm">
<CFIF sWarn EQ "">
	<!--- clean and go --->
	<CFIF sMailRecipients IS NOT "">
		<!--- Get the virtual directory of base template --->
		<CFMODULE TEMPLATE="#client.common_path#cfm_virtualdirectory.cfm">

		<!--- Create body of message here --->
<!---		<CFSET sBodyMessage="You have a new work item(s) from iBOS/e WebShell eForms sent by " & client.myname & "." & chr(13) & chr(10) &
							"Click the link below to open." & chr(13) & chr(10) &
							#client.domain# & "eforms/routing/route.cfm?autolog=yes&userid=" & sIntendedRecipient & "&companyid=" & client.companycode &
							"&id=" & URLEncodedFormat(Encrypt(sRecordID, client.ek)) & "&lastandread=no" & chr(13) & chr(10) &
							"Note: You need to sign on to your My " & client.mailcontent & " account to open the item."> --->
		<!---
		<CFSET sBodyMessage=
		"<FONT color=""Maroon"" style=""font: 21px Arial"">" & client.companyname & "</FONT><br>" &
		"<FONT color=""Maroon"" style=""font: 20px Arial"">iBOS/e WebShell 2005 Routing Form</FONT><br>" &
		"<TABLE border=""1"" cellpadding=""3"" cellspacing=""3"" style=""font: 13px Arial"" width = 400>" &
		"<TR><TD width=30%><strong>eForm</strong></TD><TD width=70%>" & GetForm.description & "</TD></TR>" &
		"<TR><TD width=30%><strong>Sender</strong></TD><TD width=70%>" & client.myname & "</TD></TR>" &
		"<TR>" &
		"<TD width=30%><strong>Message</strong></TD>" &
		"<TD width=70%>You have a new work item.<BR>" &
		"<A HREF=" & client.domain & "eforms/routing/route.cfm?autolog=yes&userid=" & sIntendedRecipient & "&companyid=" & client.companycode &	"&id=" & URLEncodedFormat(Encrypt(sRecordID, client.ek)) & "&lastandread=no>Click here to view.</A></TD>" &
		"</TR></TABLE><BR>Note: You need to sign on to your My #client.mailcontent# account to open the item.">
		--->
		
		<CFSET sBodyMessage=
		"<FONT color=""Maroon"" style=""font: 21px Arial"">" & client.companyname & "</FONT><br>" &
		"<FONT color=""Maroon"" style=""font: 20px Arial"">iBOS/e WebShell 2005 Routing Form</FONT><br>" &
		"<TABLE border=""1"" cellpadding=""3"" cellspacing=""3"" style=""font: 13px Arial"" width = 400>" &
		"<TR><TD width=30%><strong>eForm</strong></TD><TD width=70%>" & GetForm.description & "</TD></TR>" &
		"<TR><TD width=30%><strong>Sender</strong></TD><TD width=70%>" & client.myname & "</TD></TR>" &
		"<TR>" &
		"<TD width=30%><strong>Message</strong></TD>" &
		"<TD width=70%>You have a new work item.<BR>" &
		"</TR></TABLE><BR>Note: You need to sign on to your My #client.mailcontent# account to open the item.">


		<CFIF IsDefined("form.rdoIncludeForm") AND form.rdoIncludeForm IS "Y">
			<CFINCLUDE TEMPLATE="getformbody.cfm">
			<CFSET sBodyMessage=sBodyMessage & sBody>
		</CFIF>

		<CFSET sMess = sMess & "Form forwarded to #sMsgRecipients#.<BR>">

		<CFOUTPUT>
		<HTML>
		<HEAD></HEAD>
		<BODY ONLOAD="document.frmSend.submit()">
			<br><br><br><br><br><br><br><br>
			<CENTER><h3>Please wait ... sending message.</h3></CENTER>
			<FORM NAME="frmSend" METHOD="Post">
				<INPUT TYPE="Hidden" NAME="to1" VALUE="#LCase(sMailRecipients)#">
				<INPUT TYPE="Hidden" NAME="body1" VALUE="#URLENCODEDFORMAT(sBodyMessage)#">
				<INPUT TYPE="Hidden" NAME="subject1" VALUE="#client.mailcontent# Message Routing Form (FR: #client.myname#)">
				<INPUT TYPE="Hidden" NAME="mailserver" VALUE="#client.mailserver#">
				<INPUT TYPE="Hidden" NAME="mailbox" VALUE="#client.mailbox#">
				<INPUT TYPE="Hidden" NAME="successmsg" VALUE="#sMess#">
				<INPUT TYPE="Hidden" NAME="action" VALUE="#VIRTUALDIRECTORY#?typeid=#sTypeID#">
			</FORM>
		</BODY>
		</HTML>
		<CFIF SESSION.TABID EQ "movements">
			<CFSET session.sMessRecipient = "Form forwarded to #sMsgRecipients#.<BR>">
			<CFLOCATION url="#client.domain#emovements/index.cfm">
		<CFELSEIF SESSION.TABID EQ "main">
			<CFSET session.sMessBoard = "Form forwarded to #sMsgRecipients#.<BR>">
		</CFIF>
		</CFOUTPUT>
		<CFABORT>
	</CFIF>
</CFIF>